using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;

namespace One_Crappy_RPG
{
    public class MenuItem
    {
        public string Name = string.Empty;
        public bool Enabled = true;
        public bool Visible = true;
        public event EventHandler Activate;
        public Vector2 Position;

        public MenuItem(string name)
        {

            Name = name;

        }

        public void PerformActivate()
        {

            if (Activate != null && this.Enabled)

                Activate(this, null);

        }

        public void UnhookEvents()
        {
            Activate = null;
        }
    }
}
